#pragma once


#include <string>
#include <mqueue.h>

class MqMsgSend
{
public:
    MqMsgSend(std::string mq_name);
    ~MqMsgSend();

public:
    int Init();
    int Send(std::string msg);

private:
    mqd_t mq;
    std::string  __mq_name;
};


class MqMsgRecv
{
public:
    MqMsgRecv();
    MqMsgRecv(std::string mq_name);
    ~MqMsgRecv();

public:
    int Init();
    int InitWithName(std::string mq_name);
    std::string Recv();

private:
    mqd_t mq;
    std::string  __mq_name;
};